const state = {
  small: JSON.parse(sessionStorage.getItem('small')) ? JSON.parse(sessionStorage.getItem('small')) : false,
}

const mutations = {
  changWindowSize(state, e) {
  	state.small = e
  }
}

const actions = {
  isSmall(context, e) {
  	context.commit('changWindowSize', e)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
